package com.tanhua.dubbo.api;

import com.tanhua.dubbo.mappers.AnnouncementsMapper;
import com.tanhua.model.domain.Announcements;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @program: tanhua
 * @description: 公告
 * @author: leiyukun
 * @create: 2022-03-31 16:57
 **/
@DubboService
public class AnnouncementsApiImpl implements AnnouncementsApi{
    @Autowired
    private AnnouncementsMapper announcementsMapper;

    @Override
    public List<Announcements> findAll(Integer page, Integer pagesize) {
        return announcementsMapper.findList((page-1)*pagesize,pagesize);
    }
}
